const path = require("path");

module.exports = {
  entry: "src/index.jsx",
  plugins: [
    [
      "ice-plugin-fusion",
      {
        themePackage: "@icedesign/theme"
      }
    ],
    [
      "ice-plugin-moment-locales",
      {
        locales: ["zh-cn"]
      }
    ]
  ],
  alias: {
    "@": path.resolve(__dirname, "./src/"),
    "@components": path.resolve(__dirname, "src/components"),
    "@utils": path.resolve(__dirname, "src/utils"),
    "@images": path.resolve(__dirname, "src/images"),
    "@pages": path.resolve(__dirname, "src/pages")
  },
  publicPath: "/static/web/",
  outputDir: path.resolve(__dirname, "../api/static/web")
};
